package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

@Getter
@Setter
@Document(collection = "category_info")
public class CategoryInfo extends EntityBase {

    /**
     * 启用状态
     */
    public static final String CATEGORY_ENABLE = "enable";

    /**
     * 启用状态
     */
    public static final String CATEGORY_DISABLE = "disable";


   @Indexed(unique = true)
    private String name;

    private String status = CATEGORY_ENABLE;
    /**
     * 排序
     */
    private Integer priority = 1;

    /**
     * 选中图标
     */
    private String selectIcon;

    /**
     * 未选中图标
     */
    private String unSelectIcon;
}
